home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _5CF89A615F9A43F2BCB8A7D41F2B5A56 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.9 KB  |  56 lines

  1. --------------------------------------------------
  2. --    Created By: Petar
  3.  
  4.  
  5. AIBehaviour.BaboonIdle = {
  6.     Name = "BaboonIdle",
  7.  
  8.  
  9.     ---------------------------------------------
  10.     OnPlayerSeen = function( self, entity, fDistance )
  11.         -- called when the enemy sees a living player
  12.  
  13.  
  14.         entity:SelectPipe(0,"mutant_screwed_attack");
  15.         -- bellow and howl
  16.         entity:InsertSubpipe(0,"mutant_shared_bellowhowl");
  17.         
  18.     end,
  19.     ---------------------------------------------
  20.     OnEnemyMemory = function( self, entity )
  21.         -- called when the enemy can no longer see its foe, but remembers where it saw it last
  22.     end,
  23.     ---------------------------------------------
  24.     OnInterestingSoundHeard = function( self, entity )
  25.         -- called when the enemy hears an interesting sound
  26.     end,
  27.     ---------------------------------------------
  28.     OnThreateningSoundHeard = function( self, entity )
  29.         -- called when the enemy hears a scary sound
  30.     end,
  31.     ---------------------------------------------
  32.     OnReload = function( self, entity )
  33.         -- called when the enemy goes into automatic reload after its clip is empty
  34.     end,
  35.     ---------------------------------------------
  36.     OnGroupMemberDied = function( self, entity )
  37.         -- called when a member of the group dies
  38.     end,
  39.     ---------------------------------------------
  40.     OnNoHidingPlace = function( self, entity, sender )
  41.         -- called when no hiding place can be found with the specified parameters
  42.     end,    
  43.     ---------------------------------------------
  44.     OnReceivingDamage = function ( self, entity, sender)
  45.         -- called when the enemy is damaged
  46.     end,
  47.     --------------------------------------------------
  48.     OnBulletRain = function ( self, entity, sender)
  49.         -- called when the enemy detects bullet trails around him
  50.     end,
  51.     --------------------------------------------------
  52.     MAKE_BELLOW_HOWL_ANIMATION = function ( self, entity, sender)
  53.         entity:InsertAnimationPipe("idle05");
  54.     end,
  55.  
  56. }